{% extends "main.html" %}


{% block tabs %}
{{ super() }}
<style>

/* override mkdocs default */
/* .md-header {
    position: initial;
    background: linear-gradient(#2875be,rgba(40, 117, 190, 0.80));
}
.md-tabs {
    background-color: transparent;
    background: linear-gradient(rgba(40, 117, 190, 0.80) ,rgba(40, 117, 190, 0.60));
} */

/* .first_hero{
    background: linear-gradient(rgba(40, 117, 190, 0.60), rgba(40, 117, 190, 0));
    min-height: 300px;
} */

/* .md-typeset a{
    color: #e85d7b;
} */

.md-search__inner{
    display: none;
}

.md-main__inner {
    margin: 0
}

.md-footer-copyright {
    display: none
}

.md-footer-nav__inner {
    display: none
}

.md-content {
    display: none
}

.md-footer-meta__inner {
    align-content: center;
    display: flex;
    align-items: center;
    justify-content: center
}


/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    background-color: white;
}


.md-header {
    position: initial;
    background-color: #2875be;
}
.md-tabs {
    background-color: transparent;
    background-color: #2875be;
}
.main-container {
    --md-primary-fg-color: #2875be;
    height: fit-content;
    padding-top: 0rem;
    padding-bottom: 3rem;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: white' /></svg>") no-repeat bottom, linear-gradient(to bottom, var(--md-primary-fg-color), #e85d7b 99%, #fff 99%)
}

.hero {
    color: var(--md-primary-bg-color);
    justify-content: right;
}


.hero h1 {
    margin-bottom: 0rem;
    color: currentColor;
    font-weight: 700
}

.hero-content {
    padding-bottom: 9rem;
    justify-content: left;
}

.hero-image {
    max-width: 100%;
    max-height: 100%;
    order: 1;
}

.hero .md-button {
    margin-top: .5rem;
    margin-right: .5rem;
    color: var(--md-primary-bg-color)
}





.container {
    padding: 0rem;
    margin-bottom: 0px;
    background-color: white;
    height: auto;
}

.container .md-button {
    margin-top: .5rem;
    margin-right: .5rem;
    color: var(--md-primary-bg-color)
}

/* .container .hero-left{
    display: flex;
    align-items: center;
    justify-content: right;
}
.container .hero-right{
    display: flex;
    align-items: center;
    justify-content: right;
} */

.container-image-left {
    max-width: 100%;
    max-height: 100%;
    order: 1;
    padding-right: 0.5rem;
    padding-left: 0rem;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 2rem;
    float: left;
}

.container-content-right {
    margin-left: 50px;
    justify-content: left;
    color: #2a978d;
    padding: 0 0px;
    padding-bottom: 40px;
    word-break: break-word;
    float: right;
}

.container-image-right {
    max-width: 100%;
    max-height: 100%;
    order: 1;
    padding-right: 2.5rem;
    padding-top: 30px;
    padding-bottom: 30px;
}

.container-content-left {
    margin-left: 20px;
    margin-right: 20px;
}

.container h1 {
    margin-top: 0;
    color: #2875be;
    font-weight: 600;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    /*font-family: inherit;*/
}

.container p {
    font-size: 17px;
    line-height: 1.8em;
    text-rendering: optimizeLegibility;
    color: black;
    display: block;
}

.container a {
    color: #2875be;
}

.container p a:hover {
    color: #e85d7b !important;
}

.container a:link {
    color: #2875be;
}

.container a:visited {
    color: #2875be;
}






@media screen and (min-width: 60em) {
    .md-sidebar--secondary {
        display: none
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .hero-content {
        max-width: 28rem;
        margin-top: 3.5rem;
        margin-bottom: 3.5rem;
        margin-left: 1.0rem;
        margin-right: 4.0rem;
        align-items: center;
    }
    .container h1 {
        margin-top: 50px;
        color: #2875be;
        font-weight: 600;
        font-size: 36px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: normal;
        /*font-family: inherit;*/
    }
}


.container-content-left h1{
    margin-top: 0;
}
</style>

<script>
// 如果 document.referrer 不是 来源于  "/zh-cn/" 则执行下面的代码
if (document.referrer === ''){
    var type = navigator.appName;
    if (type == "Netscape") {
        var lang = navigator.language.toLowerCase();
    } else {
        var lang = navigator.browserLanguage.toLowerCase();
    }
    var lang = lang.substr(0, 5);
    if (lang === "zh-cn" && window.location.pathname === "/") {
        window.location.href = "/zh-cn/"
    }
}
</script>
{% endblock %}

